Watching Transactions

  • A class that allows you to watch a transaction for events and block confirmations.

    firstly {
      web3.sendTransaction(transaction: transaction)
    }.done { transactionHash in
      let watcher = TransactionWatcher(hash: transactionHash, web3: web3)
      watcher.expectedConfirmations = 3
      watcher.delegate = self
      self.transactionWatcher = watcher
    }
    
    See more

    Declaration

    Swift

    public class TransactionWatcher
  • A class that will receive updates about a transaction.

    See more

    Declaration

    Swift

    public protocol TransactionWatcherDelegate : AnyObject